package cn.ad.server.web.servlet.v2.requests;

import cn.ad.server.web.spring.model.AdRequest;

public class TrackingRequest extends AdRequest{

	/**
	 * 广告点击
	 */
	public static final int HANDLETYPE_CLICK = 1;
	
	/**
	 * 广告展示
	 */
	public static final int HANDLETYPE_IMPRESSION = 2;
	
	
	/**
	 * 接口请求版本号
	 */
	private String version;
	
	/**
	 * 平台标识
	 */
	private int platform_id;
	
	/**
	 * 用户设备信息（user_agent）
	 */
	private String ua;
	
	/**
	 * 用户IP地址
	 */
	private String ip;
	
	/**
	 * 广告位标识
	 */
	private long aid;
	/**
	 * 策略标识
	 */
	private int sid;
	
	/**
	 * 创意标识
	 */
	private long cid;
	
	/**
	 * 素材标识
	 */
	private long mid;
	
	/**
	 * guid 广告请求跟踪标识
	 * 通过此标识能够跟踪到从请求广告到展示广告，点击广告的系列操作，以及可以通过guid获取操作过程所产生的临时变量 
	 */
	private String guid;
	
	/**
	 * 地理信息--经度，作为宏拼在模板中要求媒体替换
	 */
	private String lon;
	
	/**
	 * 地理信息-- 纬度，作为宏拼在模板中要求媒体替换
	 */
	private String lat;
	
	/**
	 * 设备mac
	 */
	private String mac;
	
	/**
	 * 设备idfa
	 */
	private String idfa;
	
	/**
	 * 设备imei
	 */
	private String imei;
	
	/**
	 * 补量渠道id
	 */
	private String ch;
	
	
	

	/**
	 * @return the ua
	 */
	public String getUa() {
		return ua;
	}

	/**
	 * @param ua the ua to set
	 */
	public void setUa(String ua) {
		this.ua = ua;
	}
	


	/**
	 * @return the ip
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @return the platform_id
	 */
	public int getPlatform_id() {
		return platform_id;
	}

	/**
	 * @param platform_id the platform_id to set
	 */
	public void setPlatform_id(int platform_id) {
		this.platform_id = platform_id;
	}

	/**
	 * @return the aid
	 */
	public long getAid() {
		return aid;
	}

	/**
	 * @param aid the aid to set
	 */
	public void setAid(long aid) {
		this.aid = aid;
	}

	/**
	 * @return the sid
	 */
	public int getSid() {
		return sid;
	}

	/**
	 * @param sid the sid to set
	 */
	public void setSid(int sid) {
		this.sid = sid;
	}

	/**
	 * @return the cid
	 */
	public long getCid() {
		return cid;
	}

	/**
	 * @param cid the cid to set
	 */
	public void setCid(long cid) {
		this.cid = cid;
	}

	/**
	 * @return the mid
	 */
	public long getMid() {
		return mid;
	}

	/**
	 * @param mid the mid to set
	 */
	public void setMid(long mid) {
		this.mid = mid;
	}

	/**
	 * @return the guid
	 */
	public String getGuid() {
		return guid;
	}

	/**
	 * @param guid the guid to set
	 */
	public void setGuid(String guid) {
		this.guid = guid;
	}

	/**
	 * @return the lon
	 */
	public String getLon() {
		return lon;
	}

	/**
	 * @param lon the lon to set
	 */
	public void setLon(String lon) {
		this.lon = lon;
	}

	/**
	 * @return the lat
	 */
	public String getLat() {
		return lat;
	}

	/**
	 * @param lat the lat to set
	 */
	public void setLat(String lat) {
		this.lat = lat;
	}

	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getIdfa() {
		return idfa;
	}

	public void setIdfa(String idfa) {
		this.idfa = idfa;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getCh() {
		return ch;
	}

	public void setCh(String ch) {
		this.ch = ch;
	}
	
	
}
